package com.leetcode.LC;

public class LC1550 {
    public boolean threeConsecutiveOdds(int[] arr) {

        int count=0;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]%2==1){
                count++;
                if (count==3){
                    return true;
                }
            }else {
                count=0;
            }
        }
        return false;
    }
}
